﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>@ViewBag.Title</title>

    <link href="@Url.Content("~/Content/BootstrapCSS/bootstrap.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/BootstrapCSS/bootstrap-responsive.css")" rel="stylesheet" type="text/css" />
    <link href="../../Content/Site.css" rel="stylesheet" type="text/css" />
    <link href="../../Content/jquery-ui-1.8.20.custom.css" rel="stylesheet" type="text/css" />

    <!-- Scripts -->
    <!--<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.js" type="text/javascript"></script>
    <script src="../../Scripts/BootstrapJS/bootstrap.js" type="text/javascript"></script>
    <script src="../../Scripts/BootstrapJS/bootstrap.min.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery-1.5.1.js" type="text/javascript"></script>-->
    <!-- Scripts -->
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.js" type="text/javascript"></script>
    <script src="../../Content/twitter-bootstrap/docs/assets/js/bootstrap.js" type="text/javascript"></script>
    <script src="../../Content/twitter-bootstrap/docs/assets/js/bootstrap.min.js" type="text/javascript"></script>
    <script src="../../Content/twitter-bootstrap/docs/assets/js/bootstrap-dropdown.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery.tmpl.min.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery-ui-1.8.20.custom.min.js" type="text/javascript"></script>
</head>
<body>
    <!-- TODO: Add padding to Body-->
         <div class="navbar navbar-fixed-top">
          <div class="navbar-inner">
            <div class="container">
              <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
              </a>
              <a class="brand" href="@Url.Action("Index", "Home")">GameSchool</a>
              <div class="nav-collapse">
                <ul class="nav">
                  <li>@Html.ActionLink("Heim", "Index", "Home")</li>
                  <li>@Html.ActionLink("Um síðuna", "About", "Home")</li>
                  <li>@Html.ActionLink("Hafa samband", "Contact", "Home")</li>
                  <!--<div class="pull-right">-->
                  <!--</div>-->
                </ul>
                @if (User.Identity.IsAuthenticated)
                {
                    @Html.Partial("_LogOnPartial")
                }
              </div><!--/.nav-collapse -->
            </div>
          </div>
        </div>

        <div class="container-fluid">
            <div class="row-fluid">
                <div class="span2">
                @if (User.Identity.IsAuthenticated)
                {
                    <div class="well sidebar-nav">
                        <ul class="nav nav-list">
                            @if (User.IsInRole("Student"))
                            {  
                                @Html.Action("Navigation", "Student")
                            }
                            @if (User.IsInRole("Admin"))
                            {
                                    <li>@Html.ActionLink("Nemendur", "GetStudents", "Admin")</li>
                                    <li>@Html.ActionLink("Kennarar", "GetTeachers", "Admin")</li>
                                    <li>@Html.ActionLink("Áfangar", "GetCourses", "Admin")</li>
                                    <li>@Html.ActionLink("Nýr notandi", "CreateUser", "Admin")</li>
                            }
                             @if (User.IsInRole("Teacher"))
                             {
                                 @Html.Action("Navigation", "Teacher")
                             }
                        </ul>
                    </div><!--/.well -->
                }
                 </div><!--/span-->
        <div class="span10 offset2">
             <!--<div id="mainBody" class="offset2 span10">-->
             @RenderBody()
             <!--</div>-->
        </div>
        </div>
        </div>


        
</body>
</html>



